<template>
  <el-header class="header"><span @click="zhedie">header</span></el-header>
</template>

<script>
import emitter from "../utils/bus";

export default {
  name: "Header",
  methods: {
    zhedie() {
      emitter.emit('doCollapse')
    }
  }
}
</script>

<style scoped>
.header {
  background-color: orange;
}
</style>